import {lazy} from "react"
import {Navigate} from "react-router-dom"
const Home = lazy(()=>import("../paegs/Home"))
const Login = lazy(()=>import("../paegs/Login"))
const Menu = lazy(()=>import("../paegs/Menu"))
const My = lazy(()=>import("../paegs/my"))
const Show = lazy(()=>import("../paegs/Show"))
const Student = lazy(()=>import("../paegs/Student"))
const routerConfig = [
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/menu",
        element:<Menu></Menu>
    },
    {
        path:"/my",
        element:<My></My>
    },
    {
        path:"/show",
        element:<Show></Show>
    },
    {
        path:"/Student",
        element:<Student></Student>
    },
    {
        path:"/",
        element:<Navigate to="/home"></Navigate>
    }

]
export default routerConfig